home *** CD-ROM | disk | FTP | other *** search
- <HTML>
- <HEAD>
- <TITLE>CreativepageAppleScript Guide</TITLE>
- <X-CLARIS-WINDOW TOP=150 BOTTOM=600 LEFT=226 RIGHT=708>
- <X-CLARIS-TAGVIEW MODE=minimal>
- </HEAD>
- <BODY BGCOLOR="#E6E6E6">
- <P><FONT SIZE="+2" FACE="Arial"><B><I>CreativePage AppleScript
- Guide</I></B></FONT></P>
-
- <P><FONT FACE="Arial Black" COLOR="#003300">ABOUT THIS GUIDE<BR>
- </FONT>This user guide is to teach you how to use AppleScript
- technology to control CreativePage. This guide will discuss how to
- make AppleScript's, what you can do with them and how to use them. If
- you have any questions please visit the <A HREF="#bottom">bottom of
- the user guide</A> for contact information.</P>
-
- <P>Below is a list of AppleScript commands and their definition of
- what they do.</P>
-
- <P><TABLE BORDER=0 WIDTH=450>
- <TR BGCOLOR="#CCCCCC">
- <TD WIDTH=94>
- <P><B>Command</B></P>
- </TD>
- <TD>
- <P><B>Definition</B></P>
- </TD>
- </TR>
- <TR>
- <TD WIDTH=94>
- <P>Beep</P>
- </TD>
- <TD>
- <P>Makes CreativePage beep</P>
- </TD>
- </TR>
- <TR>
- <TD WIDTH=94>
- <P>Open File</P>
- </TD>
- <TD>
- <P>Opens a file in CreativePage</P>
- </TD>
- </TR>
- <TR>
- <TD WIDTH=94>
- <P>Quit</P>
- </TD>
- <TD>
- <P>Quits CreativePage</P>
- </TD>
- </TR>
- <TR>
- <TD WIDTH=94>
- <P>Print File</P>
- </TD>
- <TD>
- <P>Prints the foremost web page open in CreativePage</P>
- </TD>
- </TR>
- <TR>
- <TD WIDTH=94>
- <P>Paste</P>
- </TD>
- <TD>
- <P>Pastes the contents of the clipboard in the foremost open
- web page</P>
- </TD>
- </TR>
- <TR>
- <TD WIDTH=94>
- <P>Copy</P>
- </TD>
- <TD>
- <P>Cops the text selected in the foremost web page open</P>
- </TD>
- </TR>
- <TR>
- <TD WIDTH=94>
- <P>Make Backup</P>
- </TD>
- <TD>
- <P>Makes a backup of the foremost web page open</P>
- </TD>
- </TR>
- <TR>
- <TD WIDTH=94>
- <P>Optimize HTML</P>
- </TD>
- <TD>
- <P>Optimizes the HTML in the foremost web page open in
- CreativePage</P>
- </TD>
- </TR>
- <TR>
- <TD WIDTH=94>
- <P>Deoptimize HTML</P>
- </TD>
- <TD>
- <P>Deoptimizes the HTML in a web page</P>
- </TD>
- </TR>
- <TR>
- <TD WIDTH=94>
- <P>Save</P>
- </TD>
- <TD>
- <P>Saves the foremost web page</P>
- </TD>
- </TR>
- <TR>
- <TD WIDTH=94>
- <P>Select All</P>
- </TD>
- <TD>
- <P>Selects the entire web page in CreativePage that is
- foremost</P>
- </TD>
- </TR>
- </TABLE>
- </P>
-
- <P><FONT FACE="Arial Black" COLOR="#003300">HOW TO MAKE AN
- APPLESCRIPT<BR>
- </FONT>All of the above information is useless unless you know how to
- make an AppleScript to do this things. To make a script, you must
- have AppleScript installed, which is included when you install any
- Mac OS version that supports CreativePage.</P>
-
- <P>First, open up the AppleScript editor by going into your Apple
- Extras folder and searching for the folder AppleScript. The
- AppleScript editor is an application where you make, edit and compile
- your scripts for any scriptable application, such as
- CreativePage.</P>
-
- <P>Once the editor is open, your editor will appear for making a
- script. Enter in the following code into the editor window:</P>
-
- <P><FONT SIZE="-2" FACE="Monaco">tell application "CreativePage
- 2.6"<BR>
- beep<BR>
- end tell</FONT></P>
-
- <P>Once you check the code for errors and run it, the code above will
- open CreativePage and make it beep. It will beep because one of the
- commands above is "beep" and its definition says it will make
- CreativePage beep.</P>
-
- <P>Now, while keeping line 1 and line 3 of the code above, change the
- code in line 2 (beep) with another command above. The following code
- will open CreativePage, open a document, paste what's in the
- clipboard into the contents of the document opened, print a copy,
- then beep when finished.</P>
-
- <P><FONT SIZE="-2" FACE="Monaco">tell application "CreativePage
- 2.6"<BR>
- Open File<BR>
- Paste<BR>
- Print<BR>
- Beep<BR>
- end tell</FONT></P>
-
- <P>Making an AppleScript for controlling CreativePage is very easy,
- as shown above. Now you may want to compile your script so you can
- just double click it on your desktop or in a folder and it will do
- what you want. To compile a script, enter in the script code (such as
- the code above) and go to the File menu in the menu bar and choose
- Save As Run Only. Now you can double click your compiled script and
- it will do what you entered before compiling in the AppleScript
- editor.</P>
-
- <P><FONT FACE="Arial Black" COLOR="#003300">EXAMPLES<BR>
- </FONT>Inside the CreativePage folder their is another folder named
- "Scripts". You may put your scripts you make in there with the
- example scripts already placed in there. The example scripts are
- simple, and their are only two of them. The one named "Quit" will
- make CreativePage quit once it is opened, and the one named "Does a
- lot" will do exactly what it says, a lot - and more specifically;
- open a document, print it, paste the contents of a clipboard in it,
- make a backup copy of it, and quit CreativePage.</P>
-
- <P><A NAME=bottom></A><FONT FACE="Arial Black" COLOR="#003300">CONTACT<BR>
- </FONT>If you need help creating an AppleScript or need to contact us
- for any reason, please send us an email:<BR>
- <A HREF="mailto:info@pinehillproducts.com">info@pinehillproducts.com</A></P>
-
- <P>Also check out our web site for news, updates, tips, and other
- help at:<BR>
- <A HREF="http://www.pinehillproducts.com/">http://www.pinehillproducts.com/</A></P>
- </BODY>
- </HTML>
-